 

package com.zdkj.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zdkj.admin.api.dto.RoleChangeApproveDTO;
import com.zdkj.admin.api.dto.RoleChangeCreateDTO;
import com.zdkj.admin.api.dto.RoleChangeQueryDTO;
import com.zdkj.admin.api.entity.SysRoleChange;

import java.io.File;

/**
 * 权限变更申请表
 *
 * @author haonan
 * @date 2020-01-13 17:07:11
 */
public interface SysRoleChangeService extends IService<SysRoleChange> {

    /**
     * Excel批量导入
     * @param excelFile
     * @return
     * @throws Exception
     */
    Boolean saveBatchWithExcel(File excelFile) throws Exception;

    /**
     * 审批
     * @param sysRoleChange
     * @return
     */
    Boolean approve(RoleChangeApproveDTO sysRoleChange);

    /**
     * 校验并保存
     * @param roleChangeCreateDTO
     */
    Boolean saveWithCheck(RoleChangeCreateDTO roleChangeCreateDTO);

    /**
     * 查询角色变更记录（带数据权限）
     * @param roleChangeQueryDTO
     */
    IPage queryByDataScope(Page page, RoleChangeQueryDTO roleChangeQueryDTO);


}
